from aioredis import Redis, create_redis_pool

from settings import get_settings

settings = get_settings()


async def get_redis_pool() -> Redis:
    redis = await create_redis_pool(settings.REDIS)
    return redis
